/**
 * Created by lifetime on 2018/1/29.
 */
import { Injectable } from '@angular/core';
import { HttpParams } from '@angular/common/http';

import { HttpUtil } from '../HttpUtil';

@Injectable()
export class ProjectPlanApi{

  constructor (public httpUtil: HttpUtil){
  }


  /**
   * 根据位置id获取当前用户在该位置应该处理的项目计划列表信息
   * @param {string} positionId
   * @returns {Observable<any>}
   */
  getMyProjectPlanInfos(positionId:string){
    const params = new HttpParams().set("token",localStorage.getItem("token")).set("addressId",positionId);
    return this.httpUtil.get("/api/project/my",params);
  }

}
